package com.youkeyi.ddy.cloud.common.api.basic.pub.pay;

import com.youkeyi.ddy.cloud.common.api.basic.pub.pay.dto.PublicPayTypeListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.pub.pay.param.PublicPayTypeCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.pay.param.PublicPayTypeDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.pay.param.PublicPayTypeQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.pub.pay.param.PublicPayTypeUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * PublicPayTypeCloudService
 *
 * @Annexor liuxiawang
 * @Date 2024/2/19 2:31 PM
 * @Location shenzhen.china
 */
@RestController
@FeignClient(value = "YOUKEYI-DDY-CLOUD-BASIC-PUBLIC", fallback = PublicPayTypeCloudServiceFallback.class)
@RequestMapping("/public/pay/type")
public interface PublicPayTypeCloudService {

    /**
     * 查询支付类型列表.
     *
     * @param param the param
     * @return the pay list cloud dto
     */
    @PostMapping(value = "/query")
    public abstract PublicPayTypeListCloudDto query(@RequestBody PublicPayTypeQueryCloudParam param);

    /**
     * 新增支付类型.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/create")
    public abstract ResponseContent create(@RequestBody PublicPayTypeCreateCloudParam param);

    /**
     * 更新支付类型.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/update")
    public abstract ResponseContent update(@RequestBody PublicPayTypeUpdateCloudParam param);

    /**
     * 删除支付类型.
     *
     * @param param the param
     * @return the response content
     */
    @PostMapping(value = "/delete")
    public abstract ResponseContent delete(@RequestBody PublicPayTypeDeleteCloudParam param);

}
